﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02000EC3 RID: 3779
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class RogueCurseChestInfo : IMessage<RogueCurseChestInfo>, IMessage, IEquatable<RogueCurseChestInfo>, IDeepCloneable<RogueCurseChestInfo>, IBufferMessage
	{
		// Token: 0x17002FEC RID: 12268
		// (get) Token: 0x0600A959 RID: 43353 RVA: 0x001C9470 File Offset: 0x001C7670
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<RogueCurseChestInfo> Parser
		{
			get
			{
				return RogueCurseChestInfo._parser;
			}
		}

		// Token: 0x17002FED RID: 12269
		// (get) Token: 0x0600A95A RID: 43354 RVA: 0x001C9477 File Offset: 0x001C7677
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return RogueCurseChestInfoReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17002FEE RID: 12270
		// (get) Token: 0x0600A95B RID: 43355 RVA: 0x001C9489 File Offset: 0x001C7689
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return RogueCurseChestInfo.Descriptor;
			}
		}

		// Token: 0x0600A95C RID: 43356 RVA: 0x001C9490 File Offset: 0x001C7690
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RogueCurseChestInfo()
		{
		}

		// Token: 0x0600A95D RID: 43357 RVA: 0x001C9498 File Offset: 0x001C7698
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RogueCurseChestInfo(RogueCurseChestInfo other) : this()
		{
			this.curseChestId_ = other.curseChestId_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x0600A95E RID: 43358 RVA: 0x001C94BD File Offset: 0x001C76BD
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RogueCurseChestInfo Clone()
		{
			return new RogueCurseChestInfo(this);
		}

		// Token: 0x17002FEF RID: 12271
		// (get) Token: 0x0600A95F RID: 43359 RVA: 0x001C94C5 File Offset: 0x001C76C5
		// (set) Token: 0x0600A960 RID: 43360 RVA: 0x001C94CD File Offset: 0x001C76CD
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint CurseChestId
		{
			get
			{
				return this.curseChestId_;
			}
			set
			{
				this.curseChestId_ = value;
			}
		}

		// Token: 0x0600A961 RID: 43361 RVA: 0x001C94D6 File Offset: 0x001C76D6
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as RogueCurseChestInfo);
		}

		// Token: 0x0600A962 RID: 43362 RVA: 0x001C94E4 File Offset: 0x001C76E4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(RogueCurseChestInfo other)
		{
			return other != null && (other == this || (this.CurseChestId == other.CurseChestId && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x0600A963 RID: 43363 RVA: 0x001C9514 File Offset: 0x001C7714
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.CurseChestId != 0U)
			{
				num ^= this.CurseChestId.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x0600A964 RID: 43364 RVA: 0x001C9553 File Offset: 0x001C7753
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x0600A965 RID: 43365 RVA: 0x001C955B File Offset: 0x001C775B
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x0600A966 RID: 43366 RVA: 0x001C9564 File Offset: 0x001C7764
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.CurseChestId != 0U)
			{
				output.WriteRawTag(120);
				output.WriteUInt32(this.CurseChestId);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x0600A967 RID: 43367 RVA: 0x001C9598 File Offset: 0x001C7798
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.CurseChestId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.CurseChestId);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x0600A968 RID: 43368 RVA: 0x001C95D6 File Offset: 0x001C77D6
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(RogueCurseChestInfo other)
		{
			if (other == null)
			{
				return;
			}
			if (other.CurseChestId != 0U)
			{
				this.CurseChestId = other.CurseChestId;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x0600A969 RID: 43369 RVA: 0x001C9607 File Offset: 0x001C7807
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x0600A96A RID: 43370 RVA: 0x001C9610 File Offset: 0x001C7810
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 120U)
				{
					this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
				}
				else
				{
					this.CurseChestId = input.ReadUInt32();
				}
			}
		}

		// Token: 0x040044B7 RID: 17591
		private static readonly MessageParser<RogueCurseChestInfo> _parser = new MessageParser<RogueCurseChestInfo>(() => new RogueCurseChestInfo());

		// Token: 0x040044B8 RID: 17592
		private UnknownFieldSet _unknownFields;

		// Token: 0x040044B9 RID: 17593
		public const int CurseChestIdFieldNumber = 15;

		// Token: 0x040044BA RID: 17594
		private uint curseChestId_;
	}
}
